$(function(){
    // 表格排序新
    let startFixedColumns = 0;
    $(".tablesOrder").tablesorter({
        theme:'blue',
        widthFixed:false,
        showProcessing:true,
        headerTemplate:'{content} {icon}',
        /*widgets:['filter','pager','resizable','scroller','uitheme','zebra'],*/
        widgets:['filter','pager','resizable','scroller','uitheme','zebra'],
        widgetOptions:{
            // scroll tbody to top after sorting
            scroller_upAfterSort:true,
            // pop table header into view while scrolling up the page
            scroller_jumpToHeader:true,
            /**************两个都可以使用,看情况*****************/
            scroller_height:$(window).height()-300,
            //scroller_height:$(document).height()-320,
            /*******************************/
            // set number of columns to fix
            scroller_fixedColumns:startFixedColumns,
            // add a fixed column overlay for styling
            scroller_addFixedOverlay:false,
            // add hover highlighting to the fixed column (disable if it causes slowing)
            scroller_rowHighlight:'hover',
            // bar width is now calculated; set a value to override
            scroller_barWidth:10,
        }
    });
    $('.tablesorter-filter').hide();
});
